<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    *{
        padding: 0;
        margin: 0;
    }
    html,body{
        width: 100%;
        height: 100%;
    }
    body{
        background-color: pink;
        display: flex;
        justify-content: center;
        align-items: center;      
        position: relative;
    }
    .heart{
        width: 200px;
        height: 200px;
        background-color: red;
        /* position: relative; */
        
        /* transform: rotate(45deg); */
        transform: translate(-50%, -50%) rotate(45deg);
        animation:heart 1s linear infinite ;
        box-shadow: 0 0 20px red;
    }
    .heart:hover{
        animation-play-state: paused;
        cursor: pointer;        
    }
    .heart::before{
        content:"";
        width: 200px;
        height: 100px;
        background-color: red;
        position: absolute;
        left:0px;
        top: -99px;
        border-radius: 100px 100px 0 0;
    }
     .heart::after{
        content:"";
        width:100px;
        height: 200px;
        background-color: red;
        position: absolute;
        left:-99px;
        top: 0px;
        border-radius: 100px 0 0 100px;
    }
    @keyframes heart{
        0%{
            transform: rotate(45deg) scale(0.6);
       
        }
        100%{
            transform: rotate(45deg) scale(1.4);
        }
    }
   .sang{
        position: absolute;
        top: 30px;
        left: 50%;
        transform: translate(-50%,-50%);
        text-align: center;
        color: white;
        font-size: 50px;
        font-weight: bold;
        padding: 20px;
        width: 100%;
        box-sizing: border-box;

    }
    

</style>
<body>
    <div class="heart"></div>
    <div class="sang">周末2弄 预备赏秋</div>
</body>
</html>